package com.changgou.pay.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    //支付成功后,发送到消息队列,接收参数transaction_id和orderId,更新数据库
    public static final String ORDER_PAY="order_pay";
    public static final String PAY_NOTIFY="paynotify";

    @Bean(ORDER_PAY)
    public Queue ORDER_PAY(){
        return  new Queue(ORDER_PAY);
    }
}